<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<title>Employees</title>
</h:head>
<h:body>
	<h:form prependId="false">
		<p:panel header="Search By Dept"> Select Dept :
			<h:selectOneMenu value="#{employeeBean.selectedDept}">
				<f:selectItems value="#{deptBean.allDepts}" />
			</h:selectOneMenu>

			<p:separator />
			
			<p:commandButton action="#{employeeBean.performSearch}" value="Search" ajax="false"/>			
		</p:panel>
	</h:form>
</h:body>
</html>